/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

nz-table {
  &.no-border {
    .ant-table-small {
      border: none;
    }
  }

  &.small {
    .ant-table {
      font-size: 12px;
    }
  }

  &.full-height {
    display: block;
    height: 100%;
    position: relative;

    nz-spin {
      display: block;
      height: 100%;

      .ant-spin-container {
        position: relative;
        zoom: 1;
        height: 100%;

        .ant-table {
          height: 100%;

          .ant-table-content {
            height: 100%;

            .ant-table-scroll {
              height: 100%;
            }
          }
        }
      }
    }
  }
}

.ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-thead > tr > th.ant-table-column-sort {
  background: @table-header-sort-active-bg;
}

.ant-tabs-tab {
  font-weight: 500;
}

.ant-tooltip {
  max-width: 500px;
}

.ant-tooltip-inner {
  word-break: break-word;
  font-size: 12px;
}

.ant-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.ant-table-tbody>tr>td, .ant-table-thead>tr>th{
  word-break: break-word;
}
